import { renderTag } from '@/utils/common'
import { DataTableColumn } from 'naive-ui'
import { useCodeStore } from '@/store/modules/code'
import { Dict } from '@/enums'
import { formatTime } from '@/utils/common'

const codeStore = useCodeStore()

export const basicColumns: Array<DataTableColumn<DevelopmentDoc>> = [
    {
        key: 'id',
        width: 200,
        title: '编号'
    },
    {
        key: 'name',
        title: '名称'
    },
    {
        key: 'type',
        title: '类型'
    },
    {
        key: 'creator',
        title: '创建人'
    },
    {
        key: 'gmtCreate',
        title: '创建时间',
        render(row){
            return formatTime(row.gmtCreate)
        }
    }
]